package com.minimalist.lindi.service;

import com.minimalist.common.entity.lindi.po.LindiPurchaseApplicationTownItem;
import com.minimalist.common.entity.lindi.vo.purchaseapplicationtownitem.LindiPurchaseApplicationTownItemVO;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 林地指标交易平台_购买申请镇街购买项 服务层。
 *
 * @author 11987
 * @since 2025-07-01
 */
public interface LindiPurchaseApplicationTownItemService extends IService<LindiPurchaseApplicationTownItem>{

    /**
     * 根据购买申请ID查询镇街指标列表
     *
     * @param purchaseApplicationId 购买申请ID
     * @return 镇街指标列表
     */
    List<LindiPurchaseApplicationTownItemVO> getTownItemListByPurchaseApplicationId(Long purchaseApplicationId);

    /**
     * 批量添加镇街指标
     *
     * @param townItemList 镇街指标列表
     */
    void batchAddTownItems(List<LindiPurchaseApplicationTownItemVO> townItemList);

    /**
     * 根据购买申请ID删除镇街指标
     *
     * @param purchaseApplicationId 购买申请ID
     */
    void deleteTownItemsByPurchaseApplicationId(Long purchaseApplicationId);
}
